export function transformMenu(nodes) {
    return nodes.map(node =>{                
        const nowNode ={
            label:node.name,
            url:node.url
        } 
        if(node.children){
            nowNode.children=transformMenu(node.children);
        };
        return nowNode   
    })
    
}
